home *** CD-ROM | disk | FTP | other *** search
- //-------------------------------------------------------------------
- //
- // This code is copyright 2001 by G5 Software.
- // Any unauthorized usage, either in part or in whole of this code
- // is strictly prohibited. Violators WILL be prosecuted to the
- // maximum extent allowed by law.
- //
- //-------------------------------------------------------------------
-
- class CBarrelMesh
- {
- string MeshFile = "Models/B_Barrel.mesh";
- string SkinFile = "Models/B_Barrel.skin";
- }
-
- class CBarrelStateControl extends CUnitLifeControl
- {
- void CBarrelStateControl()
- {
- CUnitLifeControl(100.0);
- m_DestroyPause = 0.0;
- m_ExplosionId = "EXPLID_BarrelExplosion";
- }
- }
-
- // Building without ground control (for use in villages)
- class CBaseBarrel extends CBuilding, CUnitWithStateControl
- {
- void CBaseBarrel()
- {
- InitializeModelAsStatic("CBarrelMesh");
- CUnitWithStateControl("CBarrelStateControl");
- Core_AddClassificator(CLASSIFICATOR_NOTVISIBLEONRADAR);
- }
- }
-
- // Single game object
- class CMountedBarrel extends CBaseBarrel
- {
- void CMountedBarrel()
- {
- InitializeGroundControl();
- }
- }
-
-
-